var datas = {
	GetUserById: function($http, id, params) {
		return $http.post(serv + 'user/' + id, { request: params });
	},
	GetUsersFollowed: function($http, userId, params) {
		return $http.post(serv + 'users/followed/' + userId, { request: params });
	},
	GetUsersFollower: function($http, userId, params) {
		return $http.post(serv + 'users/follower/' + userId, { request: params });
	},
	AddPicture: function($http, userId, place, params) {
		return $http.post(serv + 'picture/add/' + userId + '/' + place, { request: params });
	},
	AddPictureForFriends: function($http, userId, place, friends, params) {
		//example friends = '2;7;46;89'
		return $http.post(serv + 'picture/add/' + userId + '/' + place + '/' + friends, { request: params });
	},
	GetCircles: function($http, userId, params) {
		return $http.post(serv + 'circle/friends/' + userId, { request: params });
	},
	Connect: function($http, login, password, params) {
		return $http.post(serv + 'user/' + login + '/' + password, { request: params });	
	},
	RegisterToHub: function($http, id, platform, params) {
		return $http.post(serv + 'device/register/' + id + '/' + platform, { request: params } );
	},
	Register: function($http, login, email, country, password){
		return $http.post(serv + 'user/add/' + login + '/' + email + '/' + country + '/' + password);
	},
	Waw: function($http) {
		return $http.get(serv + 'qsn');
	},
	SearchAll: function($http, keyword, params) {
		return $http.post(serv + 'search/all/' + keyword, { request: params });
	},
	SearchPlace: function($http, keyword, params){
		return $http.post(serv + 'search/place/' + keyword, { request: params });
	},
	SearchUser: function($http, keyword, params) {
		return $http.post(serv + 'search/user/' + keyword, { request: params });
	},
	GetAllPlace: function($http, params){
		return $http.post(serv + 'place/all', { request: params });
	},
	AddCircle: function($http, user, title, params){
		return $http.post(serv + 'circle/add' + user + '/' + title, { request: params });
	},
	RemoveCircle: function($http, user, circle, params) {
		return $http.post(serv + 'circle/remove/' + user + '/' + circle, { request: params });
	},
	AddUserInCircle: function($http, user, circle, friend, params) {
		return $http.post(serv + 'circle/user/add/' + user + '/' + circle + '/' + friend, { request: params });
	},
	RemoveUserInCircle: function($http, user, circle, friend, params){
		return $http.post(serv + 'circle/user/remove/' + user + '/' + circle + '/' + friend, { request: params });
	},
	AddJudge: function($http, user, picture, review, params) {
		return $http.post(serv + 'judge/add/' + user + '/' + picture + '/' + review, { request: params });
	},
	UpdateJudge: function($http, user, picture, review, params) {
		return $http.post(serv + 'judge/update/' + user + '/' + picture + '/' + review, { request: params });
	},
	GetParams: function($http, user, params) {
		return $http.post(serv + 'params/' + user, { request: params });
	},
	AddParam: function($http, user, param, value, params) {
		return $http.post(serv + 'params/user/add/' + user + '/' + param + '/' + value, { request: params });
	},
	UpdateParam: function($http, user, param, value, params) {
		return $http.post(serv + 'params/user/update/' + user + '/' + param + '/' + value, { request: params });
	},
	RemovePicture: function($http, user, picture, params) {
		return $http.post(serv + 'picture/remove/' + user + '/' + picture, { request: params });
	},
	GetPictures: function($http, user, params) {
		return $http.post(serv + 'pictures/' + user, { request: params });
	},
	GetPicturesToJudge: function($http, user, params) {
		return $http.post(serv + 'pictures/judge/' + user, { request: params });
	},
	GetPicturesToJudgeByPlace: function($http, user, place, params) {
		return $http.post(serv + 'pictures/judge/' + user + '/' + place, { request: params });
	},
	AddFbUser: function($http, token, params) {
		return $http.post(serv + 'user/add/facebook/' + token, { request: params });
	},
	AddUser: function($http, user, email, country, pwd, params) {
		return $http.post(serv + 'user/add/' + user + '/' + email + '/' + country + '/' + pwd, { request: params });
	},
	AddFbUser: function($http, token, params) {
		return $http.post(serv + 'user/add/facebook/' + token, { request: params });
	},
	AddPeopleToFollow: function($http, user, follower, params) {
		return $http.post(serv + 'user/follow/add/' + user + '/' + follower, { request: params });
	},
	RemovePeopleToFollow: function($http, user, follower, params) {
		return $http.post(serv + 'user/follow/remove/' + user + '/' + follower, { request: params });
	},
	AddPlaceToFollow: function($http, user, place, params) {
		return $http.post(serv + 'user/place/add/' + user + '/' + place, { request: params });
	},
	RemovePlaceToFollow: function($http, user, place, params) {
		return $http.post(serv + 'user/place/remove/' + user + '/' + place, { request: params });
	}
}